package com.xzj.admin.boot.domain.entity;

import com.xzj.admin.base.domain.gateway.XzjRouterConfigDefinition;
import com.xzj.common.core.domain.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @program: xzj-admin
 * @ClassName: SysGatewayRouter
 * @description: 网关路由管理;
 * @author: XiaZunJun
 * @create: 2024-10-12
 */
@Schema(name = "网关路由管理",description = "")
@Data
@EqualsAndHashCode(callSuper = true)
public class SysGatewayRouter extends BaseEntity implements Serializable{
    /** 网关路由ID */
    @Schema(name = "网关路由ID",description = "")
    private String id ;


    /** 网关路由lb */
    @Schema(name = "网关路由lb",description = "")
    private String uri ;


    /** 服务名 */
    @Schema(name = "服务名",description = "")
    private String serverName ;

    /** 排序 */
    @Schema(name = "排序",description = "")
    private Integer order ;

    /** 是否更新 */
    private boolean isUpdate;

    /** 断言配置 */
    private List<XzjRouterConfigDefinition> predicatesConfig = new ArrayList<>();

    /** 过滤器配置 */
    private List<XzjRouterConfigDefinition> filtersConfig = new ArrayList<>();

    /** 路由配置 */
    private List<XzjRouterConfigDefinition> routerConfig = new ArrayList<>();


}